<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<title>获取页面的URL</title>
</head>
<body>
<script type="text/javascript">
  document.write("<b>当前页面的URL：</b>"+document.URL);   //获取当前页面的URL地址
</script>
</body>
</html>
